import Vue from 'vue'
import App from './App.vue'
import router from './router'
import singleSpaVue from 'single-spa-vue'

Vue.config.productionTip = false

const render = () => {
  new Vue({
    router,
    render: h => h(App),
  }).$mount('#app')
}
if (!window.singleSpaNavigate) {
  render()
}
const vueLifeCycles = singleSpaVue({
  Vue,
  appOptions: {
    router,
    render: h => h (App)
  },
})

// 开始加载结构
export const bootstrap = vueLifeCycles.bootstrap;
// 
export const mount = vueLifeCycles.mount;

export const unmount = vueLifeCycles.unmount;